﻿using miniQQ_Template.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace miniQQ_Template.Commands
{
    internal class Help : CommandBase
    {
        internal override string CommandString => "help";

        internal override string Description => "获取帮助";

        internal override void Execute(string RobotQQ,int MsgType, string MsgFrom, string TigFrom, string Msg)
        {
            Msg = $"{QQMain.AddOnName}指令列表：\n";
            foreach (var item in CommandModel.Commands)
            {
                Msg += $"{item.CommandString} : {item.Description} \n";
            }
            Api.ApiSendMsg(RobotQQ, MsgType, MsgFrom, MsgFrom, Msg, 3996);
        }
    }
}
